home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / interp / perl-5.003.tar.gz / perl-5.003.tar / perl-5.003 / hints / aix.sh < prev    next >
Text File  |  1996-02-27  |  2KB  |  68 lines

  1. # hints/aix.sh
  2. # AIX 3.x.x hints thanks to Wayne Scott <wscott@ichips.intel.com>
  3. # AIX 4.1 hints thanks to Christopher Chan-Nui <channui@austin.ibm.com>.
  4. # Merged on Mon Feb  6 10:22:35 EST 1995 by
  5. #   Andy Dougherty  <doughera@lafcol.lafayette.edu>
  6.  
  7.  
  8. # Configure finds setrgid and setruid, but they're useless.  The man
  9. # pages state:
  10. #    setrgid: The EPERM error code is always returned.
  11. #    setruid: The EPERM error code is always returned. Processes cannot
  12. #             reset only their real user IDs.
  13. d_setrgid='undef'
  14. d_setruid='undef'
  15.  
  16. alignbytes=8
  17.  
  18. usemymalloc='n'
  19.  
  20. # Make setsockopt work correctly.  See man page.
  21. # ccflags='-D_BSD=44'
  22.  
  23. # uname -m output is too specific and not appropriate here
  24. case "$archname" in
  25. '') archname="$osname" ;;
  26. esac
  27.  
  28. case "$osvers" in
  29. 3*) d_fchmod=undef
  30.     ccflags='-D_ALL_SOURCE'
  31.     ;;
  32. *)  # These hints at least work for 4.x, possibly other systems too.
  33.     d_setregid='undef'
  34.     d_setreuid='undef'
  35.     ccflags='-qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE'
  36.     nm_opt='-B'
  37.     ;;
  38. esac
  39.  
  40. # The optimizer in 4.1.1 apparently generates bad code for scope.c.
  41. # Configure doesn't offer an easy way to propagate extra variables
  42. # only for certain cases, so the following contortion is required:
  43. # This is probably not needed in 5.002 and later.
  44. # scope_cflags='case "$osvers" in 4.1*) optimize=" ";; esac'
  45.  
  46. # Changes for dynamic linking by Wayne Scott <wscott@ichips.intel.com>
  47. #
  48. # Tell perl which symbols to export for dynamic linking.
  49. case "$cc" in
  50. *gcc*) ccdlflags='-Xlinker -bE:perl.exp' ;;
  51. *) ccdlflags='-bE:perl.exp' ;;
  52. esac
  53.  
  54. # The first 3 options would not be needed if dynamic libs. could be linked
  55. # with the compiler instead of ld.
  56. # -bI:$(PERL_INC)/perl.exp  Read the exported symbols from the perl binary
  57. # -bE:$(BASEEXT).exp        Export these symbols.  This file contains only one
  58. #                           symbol: boot_$(EXP)  can it be auto-generated?
  59. case "$osvers" in
  60. 3*) 
  61. lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart -lc'
  62.     ;;
  63. *) 
  64. lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc'
  65.  
  66. ;;
  67. esac
  68.